"""2025.2.26 """
"""第一个程序"""
# print("hello word")
"""变量可以做加减乘除"""
# money=50
# money=money-10
# print("钱包余额还有：",money)
"""type可以查看数据类型"""
# example1="class"
# example2=type(example1)
# print(example2)

"""type可以查看变量所存储的数据类型"""
# example="1234"
# example1=int(example)
# print(type(example1))
# print(example1)
"""数据类型转换"""
# example2=1234
# example3=str(example2)
# print(type(example3))
# print(example3)

# example=float(11)
# print(type(example),example)

# example1=int(12.11)
# print(type(example1),example1)
"""算数运算符"""
# print("1+1=",1+1)
# print("2-1=",2-1)
# print("2*1=",2*1)
# print("6/2=",6/2)
# print("10//4=",10//4)
# print("10/4=",10/4)
# print("10%4=",10%4)
# print("2**10=",2**10)
"""赋值运算符"""
# num=10
# num+=1
# print("num+=1",num)
# num-=1
# print("num-=1",num)
# num*=2
# print("num*=10",num)
# num/=3
# print("num/=3",num)
# num%=3
# print("num%=3",num)
# num**=3
# print("num**=3",num)
# num//=3
# print("num//=3",num)
"""字符串的三种定义方式"""
# name='xiaoming'
# print(name)
# name="xiaoli"
# print(name)
# name="""xiaowang"""
# print(name)

# name="'xiaoli'"
# print(name)
# name='"xiaowang"'
# print(name)
# name="\"xiaoming\""
# print(name)
"""字符串的链接"""
# name="小明"
# address="翻斗大街"
# tele=123
# print("name:"+name+"address:"+address)
"""字符串的占位格式化，有三个类型整数，字符串，浮点数"""
# num1=123
# num2=456
# message="第一个数字为%s,第二个数字为%s" %(num1,num2)
# print(message)
#
# name="xiaoming"
# num=456
# float_1=11.22
# message="name=%s,num=%d,float=%f" %(name,num,float_1)
# print(message)
"""字符串格式化的精度控制m.n"""
# num1=11
# num2=11.5423
# print("数字宽度是5d，num1=%5d" % num1)
# print("数字宽度是1d，num1=%1d" % num1)
# print("数字宽度是7.2,num2=%7.2f" % num2)
# print("数字宽度是0.3，num2=%.3f" % num2)
"""快速格式化"""
# str=("xiaoming")
# num1=20
# num2=12.243
# print(f"我的名字是{str},数字一{num2}，数字二{num2}")
"""格式化可以使用表达式"""
# print("数字是%d,字符串是%s,浮点数是%f" %(1*2,type("class"),2.5*4.1))
# print(f"数字是{2*3}")
"""输入函数"""
# name=input("please input your name:")
# print("我的名字是%s" % name)
# str1=input("please input your message")
# str1=int(str1)
# print("your message kind is:",type(str1))

